<?=$this->form ( $this->element->getName (), $this->element->getAttribs (), false ); ?>
<?php
    if (! $this->element->isStatic ()):
        echo $this->renderElement ( $this->element->codnorma );
        echo $this->renderElement ( $this->element->codtab );
        echo $this->renderElement ( $this->element->codboton );
        echo $this->renderElement ( $this->element->codboton2 );
    endif;
    $sesionTabBoton = new Zend_Session_Namespace("TABBOTON");
    $sesionNormas = new Zend_Session_Namespace("NORMAS");
    
    $domConfig = Zend_Registry::get('domConfig');
   // echo "<H1>{$sesionTabBoton->titulo}</H1>";;
?>
<div align="center" width="100%">
<table width="100%">
	<tr align="center">
		<td valign="top" >
		<table width="95%" align="center" class="iceDatTbl zebra">
		<?php if ("" != $sesionTabBoton->label): ?>
			<thead>
				<tr>
					<th colspan="2">Informaci&oacute;n general</th>
				</tr>
			</thead>
		<?php endif; ?>
		    <?php if ($sesionTabBoton->opcion=="2_6_1"):?>
		    <tr>
				<th colspan="2"><?php echo $sesionTabBoton->label; 	?></th>
		    </tr>
			<tr>
				<th width="30%"><?php
				echo $this->element->tipodocumento->renderLabel ();
				?></th>
				<td width="70%"><?php
				echo $this->renderElement ( $this->element->tipodocumento );
				echo $this->element->tipodocumento->renderErrors ();
                ?>
                <span id="otrodocumentocual" style="display:none">&nbsp;&nbsp;&nbsp;&nbsp;<strong>* Cual ?:</strong> </span>
                <?php
				//echo $this->element->otranorma->renderLabel ();
				echo $this->renderElement ( $this->element->otrodocumento );
				echo $this->element->otrodocumento->renderErrors ();
                ?>
				</td>
			</tr>
		    <?php endif;?>
			<tr>
				<th width="30%"><?php
				echo $this->element->tiponormacna->renderLabel ();
				?></th>
				<td width="70%"><?php
				if (!$this->element->isStatic ()) :
				    echo $this->renderElement ( $this->element->tiponormacna );
				    echo $this->element->tiponormacna->renderErrors ();
				elseif($this->element->tiponormacna->getvalue() != "OTRA"):
				    echo $this->renderElement ( $this->element->tiponormacna );
				    echo $this->element->tiponormacna->renderErrors ();
				endif;
                ?>
                <span id="otranormacual" style="display:none">&nbsp;&nbsp;&nbsp;&nbsp;<strong>* Cual ?:</strong> </span>
                <?php
				//echo $this->element->otranorma->renderLabel ();
				echo $this->renderElement ( $this->element->otranorma );
				echo $this->element->otranorma->renderErrors ();
                ?>
				</td>
			</tr>
			<tr>
				<th><?php
				echo $this->element->numeronorma->renderLabel ();
				?></th>
				<td><?php
				echo $this->renderElement ( $this->element->numeronorma );
				echo $this->element->numeronorma->renderErrors ();
				?>
				</td>
			</tr>
			<tr>
				<th><?php
				echo $this->element->fechanorma->renderLabel ();
				?></th>
				<td><?php
				echo $this->renderElement ( $this->element->fechanorma );
				echo $this->element->fechanorma->renderErrors ();
				?></td>
			</tr>
			<?php if ($sesionTabBoton->opcion!="2_1_1_1"):?>
			<tr>
				<th><?php
				echo $this->element->codinstancianorma->renderLabel ();
				?></th>
				<td><?php
				if (!$this->element->isStatic ()) :
				    echo $this->renderElement ( $this->element->codinstancianorma );
				    echo $this->element->codinstancianorma->renderErrors ();
				elseif($this->element->codinstancianorma->getvalue()!= "OTRA" ):
				    echo $this->renderElement ( $this->element->codinstancianorma );
				    echo $this->element->codinstancianorma->renderErrors ();
				endif;
                ?>
                <span id="otrainstanciacual" style="display:none">&nbsp;&nbsp;&nbsp;&nbsp;<strong>* Cual ?:</strong> </span>
                <?php
				//echo $this->element->otranorma->renderLabel ();
				echo $this->renderElement ( $this->element->otrainstancia );
				echo $this->element->otrainstancia->renderErrors ();
                ?>
				</td>
			</tr>
			<?php endif;?>
           <?php if (! $this->element->isStatic ()): ?>
			<tr>
				<td colspan="2" class="iceDatTblRow2" style="text-align:center;">Tamaño máximo <strong>10 Mb. </strong> Extensiones admitidas (<?php echo $domConfig->EXTENSIONES_ARCHIVOS; ?>)</td>
			</tr>
			<tr>
				<th><?php echo $this->element->archivo->renderLabel (); ?></th>
				<td><?php
				    echo $this->renderElement ( $this->element->archivo );
				    echo $this->element->archivo->renderErrors ();
				?></td>
			</tr>
			<?php if ($sesionTabBoton->opcion=="2_4_1"):?>
			<tr>
				<th><?php echo $this->element->archivo2->renderLabel (); ?></th>
				<td><?php
				    echo $this->renderElement ( $this->element->archivo2 );
				    echo $this->element->archivo2->renderErrors ();
				?></td>
			</tr>
			<tr>
				<th><?php echo $this->element->archivo3->renderLabel (); ?></th>
				<td><?php
				    echo $this->renderElement ( $this->element->archivo3 );
				    echo $this->element->archivo3->renderErrors ();
				?></td>
			</tr>
			<?php endif;?>
		<?php endif;?>
		</table>
	</td>
	<td valign="top">&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
	  <td>
		<table width="95%" align="center" class="iceDatTbl zebra">
		  <thead>
		    <tr>
			  <th colspan="2">Síntesis:</th>
		    </tr>
 		  </thead>
		    <tr>
			  <th colspan="2"><?php  echo $sesionTabBoton->labelsintesis?></th>
		    </tr>
		  <tr>
			<td colspan="2"><?php
			echo $this->renderElement ( $this->element->sintesis );
			echo $this->element->sintesis->renderErrors ();
			?></td>
		  </tr>
		  <tr>
			<th colspan="2">(*) Información requerida</th>
		  </tr>
	    </table>
	  </td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
    <?php
	if (! $this->element->isStatic ()) :
	?>
    <tr>
		<td class="iceDatTblRow2" align="center">
        <?php
		echo $this->renderElement ( $this->element->btnSubmit );
		$this->element->btnCancelar->setValue("Cancelar");
		echo $this->renderElement ( $this->element->btnCancelar );
		?>
        </td>
	</tr>
	<?php
	endif;
	?>
</table>
</div>
</form>